package com.ysd.zhaoxing.controller;

import java.util.List;

import javax.annotation.Resource;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ysd.zhaoxing.dao.IClazzDao;
import com.ysd.zhaoxing.model.Clazz;

@RestController
@RequestMapping("clazz")
public class ClazzController {
	@Resource
	private IClazzDao clazzDao;
	
	@RequestMapping("findAll")
	public List<Clazz> findAll(){
		return clazzDao.findAll();
	}

}